package edu.byui.chat;

import java.util.ArrayList;

public class SendCommand implements Sub {
	
	@SuppressWarnings("unchecked")
	public void runSub(ArrayList parameters) {
		Message message = (Message)((Command) parameters.get(0)).getBody();
		// Chat chat = (Chat) parameters.get(1);
		// chat.addMessage(message);
		SetData sendSQL = new SetData();
		sendSQL.addMessage(message);
	}

}
